﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WINBASE.Controls
{
    public partial class WLCTreeNode : TreeNode
    {
        #region Constructor & Load

        private System.ComponentModel.IContainer components = null;
        public WLCTreeNode(int ControlId, string ControlName, string ControlText)
        {
            components = new System.ComponentModel.Container();
            this.controlName = ControlName;
            this.controlText = ControlText;
            this.controlId = ControlId;

            InitializeUI();
        } 

        #endregion

        #region Property

        string controlName = "";
        public string ControlName
        {
            get { return controlName; }
            set { controlName = value; }
        }

        string controlText = "";
        public string ControlText
        {
            get { return controlText; }
            set { controlText = value; }
        }

        int controlId;
        public int ControlId
        {
            set { controlId = value; }
            get { return controlId; }
        } 

        #endregion

        #region Method

        public void InitializeUI()
        {
            this.Name = this.ControlName;
            this.Text = this.ControlText;
        } 

        #endregion
    }
}
